// 创建路由对象
import  {createRouter,createWebHashHistory} from 'vue-router'
import Login from '../pages/login.vue'
const routes = [

    {
        name:'login',
        path:'/login',
        component:Login
    }
]
export default  createRouter({
    // 路由模式  ,hash history 
    history:createWebHashHistory(),
    routes

});